package com.qiling.attachment.service;

import java.util.List;
import com.qiling.attachment.domain.Attachment;

/**
 * 附件Service接口
 * 
 * @author ruoyi
 * @date 2021-09-18
 */
public interface IAttachmentService 
{
    /**
     * 查询附件
     * 
     * @param fileId 附件ID
     * @return 附件
     */
    public Attachment selectAttachmentById(Long fileId);

    /**
     * 查询附件列表
     * 
     * @param attachment 附件
     * @return 附件集合
     */
    public List<Attachment> selectAttachmentList(Attachment attachment);

    /**
     * 新增附件
     * 
     * @param attachment 附件
     * @return 结果
     */
    public int insertAttachment(Attachment attachment);

    /**
     * 修改附件
     * 
     * @param attachment 附件
     * @return 结果
     */
    public int updateAttachment(Attachment attachment);

    /**
     * 批量删除附件
     * 
     * @param fileIds 需要删除的附件ID
     * @return 结果
     */
    public int deleteAttachmentByIds(Long[] fileIds);

    /**
     * 删除附件信息
     * 
     * @param fileId 附件ID
     * @return 结果
     */
    public int deleteAttachmentById(Long fileId);
}
